import * as actionType from '../actions/actionType.js'

const initState = {
  todetail: []
}

export default (state = initState, action) => {
  switch (action.type) {
    case actionType.TO_DETAIL: {
      state.todetail = action.payload
      return state 
    }
    default: 
    return state
  }
}